  <% new_or_existing = tag.new_record? ? 'new' : 'existing' %>
  <% prefix = "complaint[#{new_or_existing}_tag_attributes][]" %>
  <% fields_for prefix, tag do |t| -%>
    <p>
      <%= t.text_field :title %>
    </p>
  <% end -%>

